const htmlNonStyle = {
  bind(el, binding) {
    const vHtml = _removeHtmlStyle(binding.value)
    el.innerHTML = vHtml
  },
}

function _removeHtmlStyle(html) {
  const rel = /style\s*?=\s*?(['"])[\s\S]*?\1/g
  let newHtml = ''
  if (html) {
    newHtml = html.replace(rel, '')
  }
  return newHtml
}
export default htmlNonStyle
